package com.qianniu.napi.admin.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 群转发奖励设置
 * </p>
 *
 * @author chenxuebin
 * @since 2019-12-06
 */
@TableName("t_goods_qunzf")
public class GoodsQunzf extends Model<GoodsQunzf> {

    private static final long serialVersionUID = 1L;

	@TableId(value="gid", type= IdType.INPUT)
	private Long gid;

	/**
     * 群转发奖励类型@0：无返现；1：送积分；2：送现金；3：送优惠券；4：送虚拟币
     */
	@TableField("jiang_type")
	private Integer jiangType;
    /**
     * 群转发奖励最高额度
     */
	@TableField("jiang_mount")
	private BigDecimal jiangMount;

    /**
     * 群转发奖励份数
     */
	@TableField("jiang_fenshu")
	private Integer jiangFenshu;

    /**
     * 群转发最低点击数：不同人点击算有效@0：无需点击有效
     */
	@TableField("min_dianji")
	private Integer minDianji;

	private Integer oneptimes;
	/**
	 * 对于同一个人，转发新群才算有效，一个群奖励一次
	 */
	private Integer onlynew;

    /**
     * 是否支持群转发奖励
     */
	private Integer state;
	private Long mpid;
	private Date createtime;
	private Long createtor;
	private Date modifytime;
	private Long modifier;


	public Long getGid() {
		return gid;
	}

	public void setGid(Long gid) {
		this.gid = gid;
	}

	public Integer getJiangType() {
		return jiangType;
	}

	public void setJiangType(Integer jiangType) {
		this.jiangType = jiangType;
	}

	public BigDecimal getJiangMount() {
		return jiangMount;
	}

	public void setJiangMount(BigDecimal jiangMount) {
		this.jiangMount = jiangMount;
	}

	public Integer getJiangFenshu() {
		return jiangFenshu;
	}

	public void setJiangFenshu(Integer jiangFenshu) {
		this.jiangFenshu = jiangFenshu;
	}

	public Integer getMinDianji() {
		return minDianji;
	}

	public void setMinDianji(Integer minDianji) {
		this.minDianji = minDianji;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Long getMpid() {
		return mpid;
	}

	public void setMpid(Long mpid) {
		this.mpid = mpid;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Long getCreatetor() {
		return createtor;
	}

	public void setCreatetor(Long createtor) {
		this.createtor = createtor;
	}

	public Date getModifytime() {
		return modifytime;
	}

	public void setModifytime(Date modifytime) {
		this.modifytime = modifytime;
	}

	public Long getModifier() {
		return modifier;
	}

	public void setModifier(Long modifier) {
		this.modifier = modifier;
	}

	public Integer getOneptimes() {
		return oneptimes;
	}

	public void setOneptimes(Integer oneptimes) {
		this.oneptimes = oneptimes;
	}

	public Integer getOnlynew() {
		return onlynew;
	}

	public void setOnlynew(Integer onlynew) {
		this.onlynew = onlynew;
	}

	@Override
	protected Serializable pkVal() {
		return this.gid;
	}

	@Override
	public String toString() {
		return "GoodsQunzf{" +
			"gid=" + gid +
			", jiangType=" + jiangType +
			", jiangMount=" + jiangMount +
			", jiangFenshu=" + jiangFenshu +
			", minDianji=" + minDianji +
			", state=" + state +
			", mpid=" + mpid +
			", createtime=" + createtime +
			", createtor=" + createtor +
			", modifytime=" + modifytime +
			", modifier=" + modifier +
			"}";
	}
}
